<?php
include ("inc/header.php");
$url="blog.php?menuname=1_2";
?>
<!--main start-->
<div class="main">
	<div class="main_flash"><img src="temp/flash.jpg" /></div>
	<div class="main_content">
		<!--main_left Start-->
		<div class="main_left">
			<!--block start-->
			<div class="main_left_title">Blog
				<div class="tip"></div>
			</div>
			<div class="main_left_blog">
				<div class="main_left_video_top">
					<img src="temp/video.jpg" />
					<p><a href="#">Bookmark This Page!</a></p>	
				</div>
		  </div>
			<!--block end-->
			<!--block start-->
			<div class="line"></div>
			<div class="main_left_title">Previous Posts
			  <div class="tip"></div>
			</div>
			<div class="main_left_blog_list">
				<ul>
					<li><a href="#">Hong Kong Tea fair -Day 2</a></li>
					<li><a href="#">Hong Kong Tea fair -Day 2</a></li>
					<li><a href="#">Hong Kong Tea fair -Day 2</a></li>
				</ul>
				
			</div>
			<!--block end-->
			
		</div>
		<!--main_left end -->
		<div class="main_right_blog">
		
			<?
			 $sql="SELECT * FROM blog order by id desc limit 3";
			 $result=mysql_query($sql) or die(mysql_error());
			while ($rs=mysql_fetch_array($result)){
			?>
			<div class="main_blog_content">
				<div class="blog_title"><a href="blog_detail.php?id=<?=$rs["id"]?>"><?=$rs["title"]?></a></div>
				<div class="blog_date"><?=$rs["updatedate"]?></div>
				<div class="content"><?=$rs["text"]?></div>
				<div class="content_bottom">&nbsp;&nbsp;&nbsp;&nbsp; <a href="#">1 comments</a></div>
			</div>
			<?}?>
		</div>
		
		
		<div style="clear:both;"></div>
	</div>
	
	<?php
		include ("inc/footer.php");
		?>
</div>
<!--main end-->

</body>
</html>
